package com.blog.personalblog.service;

import com.blog.personalblog.bo.CategoryBO;
import com.blog.personalblog.entity.Category;
import com.blog.personalblog.config.page.PageRequest;

import java.util.List;

public interface CategoryService {
    List<Category> getCategoryPage(PageRequest pageRequest);

    int saveCategory(Category category);

    int updateCategory(Category category);

    void deleteCategory(Integer categoryId);

    Category findById(Integer categoryId);

    List<Category> getCategoriesByName(CategoryBO bo);

    Category getCategoryByName(String categoryName);
}
